package com.dt.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dt.common.annotation.Excel;
import com.dt.common.core.domain.BaseEntity;

import java.util.Date;

public class ModRepositoriesBox extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 盒子ID */
    private Long id;

    /** 区县编号 */
    @Excel(name = "区县编号")
    private String districtId;

    /** 所属库房ID */
    @Excel(name = "所属库房ID")
    private Long repositoriesId;

    /** 所属库架ID */
    @Excel(name = "所属库架ID")
    private Long shelvesId;

    /** 所属层格ID */
    @Excel(name = "所属层格ID")
    private Long layerId;

    /** 盒子编号 */
    @Excel(name = "盒子编号")
    private String boxNo;

    @Excel(name = "盒子描述")
    private String remark;

    /** 当前存放档案数量 */
    @Excel(name = "当前存放档案数量")
    private Long fileUseNum;

    @Excel(name = "创建者")
    private String createBy;

    @Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "更新者")
    private String updateBy;

    @Excel(name = "更新时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 盒子状态（0正常 1停用） */
    @Excel(name = "盒子状态")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志")
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDistrictId(String districtId) 
    {
        this.districtId = districtId;
    }

    public String getDistrictId() 
    {
        return districtId;
    }
    public void setRepositoriesId(Long repositoriesId) 
    {
        this.repositoriesId = repositoriesId;
    }

    public Long getRepositoriesId() 
    {
        return repositoriesId;
    }
    public void setShelvesId(Long shelvesId) 
    {
        this.shelvesId = shelvesId;
    }

    public Long getShelvesId() 
    {
        return shelvesId;
    }
    public void setLayerId(Long layerId) 
    {
        this.layerId = layerId;
    }

    public Long getLayerId() 
    {
        return layerId;
    }
    public void setBoxNo(String boxNo) 
    {
        this.boxNo = boxNo;
    }

    public String getBoxNo() 
    {
        return boxNo;
    }
    public void setFileUseNum(Long fileUseNum) 
    {
        this.fileUseNum = fileUseNum;
    }

    public Long getFileUseNum() 
    {
        return fileUseNum;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("districtId", getDistrictId())
            .append("repositoriesId", getRepositoriesId())
            .append("shelvesId", getShelvesId())
            .append("layerId", getLayerId())
            .append("boxNo", getBoxNo())
            .append("fileUseNum", getFileUseNum())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
